home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / FinderRegistry.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  27.9 KB  |  760 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        FinderRegistry.h
  3.  
  4.      Contains:    Data types for Finder AppleEvents
  5.  
  6.      Version:    Technology:    Mac OS 8
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1985-1999, 1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __FINDERREGISTRY__
  18. #define __FINDERREGISTRY__
  19.  
  20. #ifndef __AEREGISTRY__
  21.     #include <AERegistry.h>
  22. #endif
  23.  
  24. #ifndef __OSA__
  25.     #include <OSA.h>
  26. #endif
  27.  
  28.  
  29.  
  30.  
  31. #if PRAGMA_ONCE
  32. #pragma once
  33. #endif
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39. #if PRAGMA_IMPORT
  40. #pragma import on
  41. #endif
  42.  
  43. #if PRAGMA_STRUCT_ALIGN
  44.     #pragma options align=mac68k
  45. #elif PRAGMA_STRUCT_PACKPUSH
  46.     #pragma pack(push, 2)
  47. #elif PRAGMA_STRUCT_PACK
  48.     #pragma pack(2)
  49. #endif
  50.  
  51.  
  52. /*
  53.   //////////////////////////////////////
  54.    Finder Suite
  55.   //////////////////////////////////////
  56. */
  57.  
  58. /*
  59.    The old Finder Event suite was 'FNDR'
  60.    The new suite is 'fndr'
  61. */
  62. enum {
  63.     kAEFinderSuite                = FOUR_CHAR_CODE('fndr')
  64. };
  65.  
  66. /*
  67.   //////////////////////////////////////
  68.    Finder Events
  69.   //////////////////////////////////////
  70. */
  71. enum {
  72.     kAECleanUp                    = FOUR_CHAR_CODE('fclu'),
  73.     kAEEject                    = FOUR_CHAR_CODE('ejct'),
  74.     kAEEmpty                    = FOUR_CHAR_CODE('empt'),
  75.     kAEErase                    = FOUR_CHAR_CODE('fera'),
  76.     kAEGestalt                    = FOUR_CHAR_CODE('gstl'),
  77.     kAEPutAway                    = FOUR_CHAR_CODE('ptwy'),
  78.     kAERebuildDesktopDB            = FOUR_CHAR_CODE('rddb'),
  79.     kAESync                        = FOUR_CHAR_CODE('fupd'),
  80.     kAEInterceptOpen            = FOUR_CHAR_CODE('fopn')
  81. };
  82.  
  83. /* "Sort" from the database suite:*/
  84. enum {
  85.     kAEDatabaseSuite            = FOUR_CHAR_CODE('DATA'),
  86.     kAESort                        = FOUR_CHAR_CODE('SORT')
  87. };
  88.  
  89. /*
  90.   ////////////////////////////////////////////////////////////////////////
  91.    Classes
  92.    Note: all classes are defined up front so that the property definitions
  93.    can reference classes.
  94.   ////////////////////////////////////////////////////////////////////////
  95. */
  96.  
  97. enum {
  98.     cInternalFinderObject        = FOUR_CHAR_CODE('obj ')        /* cReference - used to distinguish objects used inside the Finder only*/
  99. };
  100.  
  101. /*
  102.    Main Finder class definitions
  103.    Indentation implies object model hierarchy
  104. */
  105. enum {
  106.                                                                 /* We do not use class cItem from AERegistry.r. Instead our class Item is a cObject*/
  107.                                                                 /*            cItem                                    = 'citm',        // defined in AERegistry.r*/
  108.                                                                 /*                cFile                                = 'file',    // defined in AERegistry.r*/
  109.     cAliasFile                    = FOUR_CHAR_CODE('alia'),
  110.     cApplicationFile            = FOUR_CHAR_CODE('appf'),
  111.     cControlPanelFile            = FOUR_CHAR_CODE('ccdv'),
  112.     cDeskAccessoryFile            = FOUR_CHAR_CODE('dafi'),
  113.     cDocumentFile                = FOUR_CHAR_CODE('docf'),
  114.     cFontFile                    = FOUR_CHAR_CODE('fntf'),
  115.     cSoundFile                    = FOUR_CHAR_CODE('sndf'),
  116.     cClippingFile                = FOUR_CHAR_CODE('clpf'),
  117.     cContainer                    = FOUR_CHAR_CODE('ctnr'),
  118.     cDesktop                    = FOUR_CHAR_CODE('cdsk'),
  119.     cSharableContainer            = FOUR_CHAR_CODE('sctr'),
  120.     cDisk                        = FOUR_CHAR_CODE('cdis'),
  121.     cFolder                        = FOUR_CHAR_CODE('cfol'),
  122.     cSuitcase                    = FOUR_CHAR_CODE('stcs'),
  123.     cAccessorySuitcase            = FOUR_CHAR_CODE('dsut'),
  124.     cFontSuitcase                = FOUR_CHAR_CODE('fsut'),
  125.     cTrash                        = FOUR_CHAR_CODE('ctrs'),
  126.     cDesktopPrinter                = FOUR_CHAR_CODE('dskp'),
  127.     cPackage                    = FOUR_CHAR_CODE('pack'),
  128.     cContentSpace                = FOUR_CHAR_CODE('dwnd'),        /*                cWindow                                = 'cwin',        // defined in AERegistry.r*/
  129.     cContainerWindow            = FOUR_CHAR_CODE('cwnd'),
  130.     cInfoWindow                    = FOUR_CHAR_CODE('iwnd'),
  131.     cSharingWindow                = FOUR_CHAR_CODE('swnd'),
  132.     cStatusWindow                = FOUR_CHAR_CODE('qwnd'),
  133.     cClippingWindow                = FOUR_CHAR_CODE('lwnd'),
  134.     cPreferencesWindow            = FOUR_CHAR_CODE('pwnd'),
  135.     cDTPWindow                    = FOUR_CHAR_CODE('dtpw'),
  136.     cProcess                    = FOUR_CHAR_CODE('prcs'),
  137.     cAccessoryProcess            = FOUR_CHAR_CODE('pcda'),
  138.     cApplicationProcess            = FOUR_CHAR_CODE('pcap'),
  139.     cGroup                        = FOUR_CHAR_CODE('sgrp'),
  140.     cUser                        = FOUR_CHAR_CODE('cuse'),        /*            cApplication                            = 'capp',        // defined in AERegistry.r*/
  141.     cSharingPrivileges            = FOUR_CHAR_CODE('priv'),
  142.     cPreferences                = FOUR_CHAR_CODE('cprf'),
  143.     cLabel                        = FOUR_CHAR_CODE('clbl'),
  144.     cSound                        = FOUR_CHAR_CODE('snd '),
  145.     cAliasList                    = FOUR_CHAR_CODE('alst'),
  146.     cSpecialFolders                = FOUR_CHAR_CODE('spfl'),        /* For use by viewer search engines:*/
  147.     cOnlineDisk                    = FOUR_CHAR_CODE('cods'),
  148.     cOnlineLocalDisk            = FOUR_CHAR_CODE('clds'),
  149.     cOnlineRemoteDisk            = FOUR_CHAR_CODE('crds'),        /* Miscellaneous class definitions*/
  150.     cEntireContents                = FOUR_CHAR_CODE('ects'),
  151.     cIconFamily                    = FOUR_CHAR_CODE('ifam')
  152. };
  153.  
  154.  
  155. /*
  156.   //////////////////////////////////////
  157.    Properties
  158.   //////////////////////////////////////
  159. */
  160.  
  161. /* Properties of class cItem (really cObject)*/
  162. enum {
  163.                                                                 /*    pBounds                                    = 'pbnd',            // defined in AERegistry.r*/
  164.     pComment                    = FOUR_CHAR_CODE('comt'),
  165.     pContainer                    = cContainer,
  166.     pContentSpace                = cContentSpace,
  167.     pCreationDateOld            = FOUR_CHAR_CODE('crtd'),        /* to support pre-Finder 8 scripts*/
  168.     pCreationDate                = FOUR_CHAR_CODE('ascd'),        /* from File Commands OSAX*/
  169.     pDescription                = FOUR_CHAR_CODE('dscr'),
  170.     pDisk                        = cDisk,
  171.     pFolderOld                    = cFolder,                        /* to support pre-Finder 8 scripts*/
  172.     pFolder                        = FOUR_CHAR_CODE('asdr'),        /* from File Commands OSAX*/
  173.     pIconBitmap                    = FOUR_CHAR_CODE('iimg'),        /*    pID                                        = 'ID  ',            // defined in AERegistry.r*/
  174.     pInfoWindow                    = cInfoWindow,
  175.     pKind                        = FOUR_CHAR_CODE('kind'),
  176.     pLabelIndex                    = FOUR_CHAR_CODE('labi'),
  177.     pModificationDateOld        = FOUR_CHAR_CODE('modd'),        /* to support pre-Finder 8 scripts*/
  178.     pModificationDate            = FOUR_CHAR_CODE('asmo'),        /* from File Commands OSAX*/
  179.                                                                 /*    pName                                    = 'pnam',            // defined in AERegistry.r*/
  180.     pPhysicalSize                = FOUR_CHAR_CODE('phys'),
  181.     pPosition                    = FOUR_CHAR_CODE('posn'),
  182.     pIsSelected                    = FOUR_CHAR_CODE('issl'),
  183.     pSize                        = pPointSize,                    /* pPointSize defined in AERegistry.r*/
  184.     pWindow                        = cWindow,
  185.     pPreferencesWindow            = cPreferencesWindow
  186. };
  187.  
  188.  
  189. /* Properties of class cFile (subclass of cItem)*/
  190. enum {
  191.     pFileCreator                = FOUR_CHAR_CODE('fcrt'),
  192.     pFileType                    = FOUR_CHAR_CODE('asty'),        /* from File Commands OSAX*/
  193.     pFileTypeOld                = FOUR_CHAR_CODE('fitp'),        /* to support pre-Finder 8 scripts*/
  194.     pIsLocked                    = FOUR_CHAR_CODE('aslk'),        /* from File Commands OSAX*/
  195.     pIsLockedOld                = FOUR_CHAR_CODE('islk'),        /* to support pre-Finder 8 scripts*/
  196.                                                                 /*    pIsStationeryPad                        = 'pspd',            // defined in AERegistry.r                            */
  197.                                                                 /*    pVersion                                = 'vers',            // defined in AERegistry.r*/
  198.     pProductVersion                = FOUR_CHAR_CODE('ver2')
  199. };
  200.  
  201.  
  202. /* Properties of class cAliasFile (subclass of cFile)*/
  203. enum {
  204.     pOriginalItem                = FOUR_CHAR_CODE('orig')
  205. };
  206.  
  207. /* Properties of class cApplicationFile (subclass of cFile)*/
  208. enum {
  209.     pMinAppPartition            = FOUR_CHAR_CODE('mprt'),
  210.     pAppPartition                = FOUR_CHAR_CODE('appt'),
  211.     pSuggestedAppPartition        = FOUR_CHAR_CODE('sprt'),
  212.     pIsScriptable                = FOUR_CHAR_CODE('isab')
  213. };
  214.  
  215. /* Properties of class cURLFile (subclass of cFile)*/
  216. enum {
  217.     pInternetLocation            = FOUR_CHAR_CODE('iloc')
  218. };
  219.  
  220. /* Properties of class cSoundFile (subclass of cFile)*/
  221. enum {
  222.     pSound                        = FOUR_CHAR_CODE('snd ')
  223. };
  224.  
  225.  
  226. /*
  227.    Properties of class cControlPanel (Views CP only) (subclass of cFile)
  228.    Note: the other view-like preference settings are not available in the Views
  229.    control panel. These properties are only offered here for backward compatability.
  230.    To set the full range of Finder Preferences, use the Preferences object.
  231. */
  232. enum {
  233.     pShowFolderSize                = FOUR_CHAR_CODE('sfsz'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  234.     pShowComment                = FOUR_CHAR_CODE('scom'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  235.     pShowDate                    = FOUR_CHAR_CODE('sdat'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  236.     pShowCreationDate            = FOUR_CHAR_CODE('scda'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  237.     pShowKind                    = FOUR_CHAR_CODE('sknd'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  238.     pShowLabel                    = FOUR_CHAR_CODE('slbl'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  239.     pShowSize                    = FOUR_CHAR_CODE('ssiz'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  240.     pShowVersion                = FOUR_CHAR_CODE('svrs'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  241.     pSortDirection                = FOUR_CHAR_CODE('sord'),
  242.     pShowDiskInfo                = FOUR_CHAR_CODE('sdin'),        /* Always on in Finder 8.0 HIS*/
  243.     pListViewIconSize            = FOUR_CHAR_CODE('lvis'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  244.     pGridIcons                    = FOUR_CHAR_CODE('fgrd'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  245.     pStaggerIcons                = FOUR_CHAR_CODE('fstg'),        /* No longer part of the Finder 8.0 HIS*/
  246.     pViewFont                    = FOUR_CHAR_CODE('vfnt'),
  247.     pViewFontSize                = FOUR_CHAR_CODE('vfsz')
  248. };
  249.  
  250. /* Properties of class cContainer (subclass of cItem)*/
  251. enum {
  252.     pCompletelyExpanded            = FOUR_CHAR_CODE('pexc'),
  253.     pContainerWindow            = cContainerWindow,
  254.     pEntireContents                = cEntireContents,
  255.     pExpandable                    = FOUR_CHAR_CODE('pexa'),
  256.     pExpanded                    = FOUR_CHAR_CODE('pexp'),
  257.     pPreviousView                = FOUR_CHAR_CODE('svew'),        /*    pSelection                                = 'sele',        // defined in AERegistry.r*/
  258.     pView                        = FOUR_CHAR_CODE('pvew'),
  259.     pIconSize                    = pListViewIconSize,            /* defined above*/
  260.     pKeepArranged                = FOUR_CHAR_CODE('arrg'),        /* OBSOLETE in Finder 9 or later*/
  261.     pKeepArrangedBy                = FOUR_CHAR_CODE('arby')        /* OBSOLETE in Finder 9 or later*/
  262. };
  263.  
  264. /* Properties of class cDesktop (subclass of cContainer)*/
  265. enum {
  266.     pStartupDisk                = FOUR_CHAR_CODE('sdsk'),
  267.     pTrash                        = FOUR_CHAR_CODE('trsh')
  268. };
  269.  
  270. /* Properties of class cSharableContainer (subclass of cContainer)*/
  271. enum {
  272.     pOwner                        = FOUR_CHAR_CODE('sown'),
  273.     pOwnerPrivileges            = FOUR_CHAR_CODE('ownr'),
  274.     pGroup                        = cGroup,
  275.     pGroupPrivileges            = FOUR_CHAR_CODE('gppr'),
  276.     pGuestPrivileges            = FOUR_CHAR_CODE('gstp'),
  277.     pArePrivilegesInherited        = FOUR_CHAR_CODE('iprv'),
  278.     pExported                    = FOUR_CHAR_CODE('sexp'),
  279.     pMounted                    = FOUR_CHAR_CODE('smou'),
  280.     pSharingProtection            = FOUR_CHAR_CODE('spro'),
  281.     pSharing                    = FOUR_CHAR_CODE('shar'),
  282.     pSharingWindow                = cSharingWindow
  283. };
  284.  
  285. /* Properties of class cDisk (subclass of cSharableContainer)*/
  286. enum {
  287.     pCapacity                    = FOUR_CHAR_CODE('capa'),
  288.     pEjectable                    = FOUR_CHAR_CODE('isej'),
  289.     pFreeSpace                    = FOUR_CHAR_CODE('frsp'),
  290.     pLocal                        = FOUR_CHAR_CODE('isrv'),
  291.     pIsStartup                    = FOUR_CHAR_CODE('istd')
  292. };
  293.  
  294. /* Properties of class cTrash (subclass of cSharableContainer)*/
  295. enum {
  296.     pWarnOnEmpty                = FOUR_CHAR_CODE('warn')
  297. };
  298.  
  299. /* Properties of class cWindow (subclass of cContentSpace)*/
  300. enum {
  301.                                                                 /*    pBounds                                    = 'pbnd',        // defined in AERegistry.r*/
  302.                                                                 /*    pHasCloseBox                            = 'hclb',        // defined in AERegistry.r*/
  303.                                                                 /*    pIsFloating                                = 'isfl',        // defined in AERegistry.r*/
  304.                                                                 /*    pIndex                                    = 'pidx',        // defined in AERegistry.r*/
  305.                                                                 /*    pIsModal                                = 'pmod',        // defined in AERegistry.r*/
  306.                                                                 /*    pPosition                                = 'posn',        // defined above*/
  307.                                                                 /*    pIsResizable                            = 'prsz',        // defined in AERegistry.r*/
  308.                                                                 /*    pHasTitleBar                            = 'ptit',        // defined in AERegistry.r*/
  309.                                                                 /*    pVisible                                = 'pvis',        // defined in AERegistry.r*/
  310.                                                                 /*    pIsZoomable                                = 'iszm',        // defined in AERegistry.r*/
  311.                                                                 /*    pIsZoomed                                = 'pzum',        // defined in AERegistry.r*/
  312.     pIsZoomedFull                = FOUR_CHAR_CODE('zumf'),
  313.     pIsPopup                    = FOUR_CHAR_CODE('drwr'),
  314.     pIsPulledOpen                = FOUR_CHAR_CODE('pull'),        /* only applies to popup windows*/
  315.     pIsCollapsed                = FOUR_CHAR_CODE('wshd')        /* only applies to normal windows*/
  316. };
  317.  
  318. /* Properties of class cContainerWindow (subclass of cWindow)*/
  319. enum {
  320.     pObject                        = cObject
  321. };
  322.  
  323. /* Properties of class cSharingWindow (subclass of cWindow)*/
  324. enum {
  325.     pSharableContainer            = cSharableContainer
  326. };
  327.  
  328. /* Properties of class cInfoWindow (subclass of cWindow)*/
  329. enum {
  330.     pInfoPanel                    = FOUR_CHAR_CODE('panl')
  331. };
  332.  
  333.  
  334. /* Properties of networking support*/
  335. enum {
  336.     pFileShareOn                = FOUR_CHAR_CODE('fshr'),
  337.     pFileShareStartingUp        = FOUR_CHAR_CODE('fsup'),
  338.     pProgramLinkingOn            = FOUR_CHAR_CODE('iac ')
  339. };
  340.  
  341. /* Properties of class cPreferencesWindow (subclass of cWindow)*/
  342. enum {
  343.                                                                 /*    pShowFolderSize                            = 'sfsz',            // defined above for Views CP*/
  344.                                                                 /*    pShowComment                            = 'scom',            // defined above for Views CP*/
  345.     pShowModificationDate        = pShowDate,                    /* pShowDate defined above for Views CP*/
  346.                                                                 /*    pShowKind                                = 'sknd',            // defined above for Views CP*/
  347.                                                                 /*    pShowLabel                                = 'slbl',            // defined above for Views CP*/
  348.                                                                 /*    pShowSize                                = 'ssiz',            // defined above for Views CP*/
  349.                                                                 /*    pShowVersion                            = 'svrs',            // defined above for Views CP*/
  350.                                                                 /*    pShowCreationDate                        = 'scda',            // Removed from Finder 8.0 HIS*/
  351.                                                                 /*    pShowFileType                            = 'sfty',            // Removed from Finder 8.0 HIS*/
  352.                                                                 /*    pShowFileCreator                        = 'sfcr',            // Removed from Finder 8.0 HIS*/
  353.                                                                 /*    pListViewIconSize                        = 'lvis',            // defined above for Views CP*/
  354.                                                                 /*    pGridIcons                                = 'fgrd',            // defined above for Views CP*/
  355.                                                                 /*    pStaggerIcons                            = 'fstg',            // defined above for Views CP*/
  356.                                                                 /*    pViewFont                                = 'vfnt',            // defined above for Views CP*/
  357.                                                                 /*    pViewFontSize                            = 'vfsz',            // defined above for Views CP*/
  358.     pUseRelativeDate            = FOUR_CHAR_CODE('urdt'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  359.     pDelayBeforeSpringing        = FOUR_CHAR_CODE('dela'),
  360.     pSpringOpenFolders            = FOUR_CHAR_CODE('sprg'),
  361.     pUseShortMenus                = FOUR_CHAR_CODE('usme'),
  362.     pUseWideGrid                = FOUR_CHAR_CODE('uswg'),
  363.     pLabel1                        = FOUR_CHAR_CODE('lbl1'),
  364.     pLabel2                        = FOUR_CHAR_CODE('lbl2'),
  365.     pLabel3                        = FOUR_CHAR_CODE('lbl3'),
  366.     pLabel4                        = FOUR_CHAR_CODE('lbl4'),
  367.     pLabel5                        = FOUR_CHAR_CODE('lbl5'),
  368.     pLabel6                        = FOUR_CHAR_CODE('lbl6'),
  369.     pLabel7                        = FOUR_CHAR_CODE('lbl7'),
  370.     pDefaultIconViewIconSize    = FOUR_CHAR_CODE('iisz'),
  371.     pDefaultButtonViewIconSize    = FOUR_CHAR_CODE('bisz'),
  372.     pDefaultListViewIconSize    = FOUR_CHAR_CODE('lisz'),        /* old use of this name is now pIconSize*/
  373.     pIconViewArrangement        = FOUR_CHAR_CODE('iarr'),
  374.     pButtonViewArrangement        = FOUR_CHAR_CODE('barr')
  375. };
  376.  
  377. /*
  378.    The next bunch are the various arrangements that make up
  379.    enumArrangement
  380. */
  381. enum {
  382.     pNoArrangement                = FOUR_CHAR_CODE('narr'),
  383.     pSnapToGridArrangement        = FOUR_CHAR_CODE('grda'),
  384.     pByNameArrangement            = FOUR_CHAR_CODE('nama'),
  385.     pByModificationDateArrangement = FOUR_CHAR_CODE('mdta'),
  386.     pByCreationDateArrangement    = FOUR_CHAR_CODE('cdta'),
  387.     pBySizeArrangement            = FOUR_CHAR_CODE('siza'),
  388.     pByKindArrangement            = FOUR_CHAR_CODE('kina'),
  389.     pByLabelArrangement            = FOUR_CHAR_CODE('laba')
  390. };
  391.  
  392. /*    #define    pObject                                    cObject            // defined above*/
  393.  
  394. /* Properties of class cProcess (subclass of cObject)*/
  395. enum {
  396.                                                                 /*    pName                                    = 'pnam',            // defined in AERegistry.r*/
  397.     pFile                        = cFile,                        /*    pCreatorType                            = 'fcrt',            // defined above*/
  398.                                                                 /*    pFileType                                = 'asty',            // defined above*/
  399.                                                                 /*    pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r*/
  400.                                                                 /*    pAppPartition                            = 'appt',            // defined above*/
  401.     pPartitionSpaceUsed            = FOUR_CHAR_CODE('pusd'),        /*    pIsScriptable                            = 'isab',            // defined in AERegistry.r*/
  402.                                                                 /*    pVisible                                = 'pvis'            // defined in AERegistry.r*/
  403.     pLocalAndRemoteEvents        = FOUR_CHAR_CODE('revt'),
  404.     pHasScriptingTerminology    = FOUR_CHAR_CODE('hscr')
  405. };
  406.  
  407. /* Properties of class cAccessoryProcess (subclass of cProcess)*/
  408. enum {
  409.     pDeskAccessoryFile            = cDeskAccessoryFile
  410. };
  411.  
  412. /* Properties of class cApplicationProcess (subclass of cProcess)*/
  413. enum {
  414.     pApplicationFile            = cApplicationFile
  415. };
  416.  
  417. /*
  418.    Properties of class cGroup (subclass of cObject)
  419.   enum {
  420.       pBounds
  421.       pIconBitmap
  422.       pLabelIndex
  423.       pName
  424.       pPosition
  425.       pWindow                                    = cWindow            // defined above
  426.   };
  427. */
  428.  
  429. /* Properties of class cUser (subclass of cObject)*/
  430. enum {
  431.                                                                 /*    pBounds*/
  432.                                                                 /*    pIconBitmap*/
  433.                                                                 /*    pLabelIndex*/
  434.                                                                 /*    pName*/
  435.                                                                 /*    pPosition*/
  436.                                                                 /*    pWindow                                    = cWindow,            // defined above*/
  437.     pCanConnect                    = FOUR_CHAR_CODE('ccon'),
  438.     pCanChangePassword            = FOUR_CHAR_CODE('ccpw'),
  439.     pCanDoProgramLinking        = FOUR_CHAR_CODE('ciac'),
  440.     pIsOwner                    = FOUR_CHAR_CODE('isow'),
  441.     pARADialIn                    = FOUR_CHAR_CODE('arad'),
  442.     pShouldCallBack                = FOUR_CHAR_CODE('calb'),
  443.     pCallBackNumber                = FOUR_CHAR_CODE('cbnm')
  444. };
  445.  
  446. /*
  447.    Properties of class cApplication (subclass of cObject)
  448.    NOTE: properties for the special folders must match their respective kXXXFolderType constants
  449. */
  450. enum {
  451.     pAboutMacintosh                = FOUR_CHAR_CODE('abbx'),
  452.     pAppleMenuItemsFolder        = FOUR_CHAR_CODE('amnu'),        /* kAppleMenuFolderType*/
  453.                                                                 /*    pClipboard                                = 'pcli',            // defined in AERegistry.r*/
  454.     pControlPanelsFolder        = FOUR_CHAR_CODE('ctrl'),        /* kControlPanelFolderType*/
  455.     pDesktop                    = FOUR_CHAR_CODE('desk'),        /* kDesktopFolderType*/
  456.     pExtensionsFolder            = FOUR_CHAR_CODE('extn'),        /* kExtensionFolderType*/
  457.                                                                 /*    pFileShareOn                            = 'fshr',            // defined above*/
  458.     pFinderPreferences            = FOUR_CHAR_CODE('pfrp'),
  459.     pFontsFolder                = FOUR_CHAR_CODE('font'),
  460.     pFontsFolderPreAllegro        = FOUR_CHAR_CODE('ffnt'),        /* DO NOT USE THIS - FOR BACKWARDS COMPAT ONLY*/
  461.                                                                 /*    pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r*/
  462.                                                                 /*    pInsertionLoc                            = 'pins',            // defined in AERegistry.r*/
  463.     pLargestFreeBlock            = FOUR_CHAR_CODE('mfre'),
  464.     pPreferencesFolder            = FOUR_CHAR_CODE('pref'),        /* kPreferencesFolderType*/
  465.                                                                 /*    pProductVersion                            = 'ver2',            // defined above*/
  466.                                                                 /*    pUserSelection                            = 'pusl',            // defined in AERegistry.r*/
  467.                                                                 /*    pFileShareStartingUp                    = 'fsup',            // defined above*/
  468.     pShortCuts                    = FOUR_CHAR_CODE('scut'),
  469.     pShutdownFolder                = FOUR_CHAR_CODE('shdf'),
  470.     pStartupItemsFolder            = FOUR_CHAR_CODE('strt'),        /* kStartupFolderType*/
  471.     pSystemFolder                = FOUR_CHAR_CODE('macs'),        /* kSystemFolderType*/
  472.     pTemporaryFolder            = FOUR_CHAR_CODE('temp'),        /* kTemporaryFolderType*/
  473.                                                                 /*    pVersion                                = 'vers',            // defined in AERegistry.r*/
  474.     pViewPreferences            = FOUR_CHAR_CODE('pvwp'),        /*    pVisible                                = 'pvis',            // defined in AERegistry.r*/
  475.     pStartingUp                    = FOUR_CHAR_CODE('awak')        /* private property to tell whether the Finder is fully up and running*/
  476. };
  477.  
  478. /* Properties of class cSharingPrivileges (subclass of cObject)*/
  479. enum {
  480.     pSeeFiles                    = FOUR_CHAR_CODE('prvr'),
  481.     pSeeFolders                    = FOUR_CHAR_CODE('prvs'),
  482.     pMakeChanges                = FOUR_CHAR_CODE('prvw')
  483. };
  484.  
  485. /*
  486.    Properties of class cPreferences (subclass of cObject)
  487.   enum {
  488.       pShowFolderSize                            = 'sfsz',            // defined above for Views CP
  489.       pShowComment                            = 'scom',            // defined above for Views CP
  490.       pShowModificationDate                    = pShowDate,            // pShowDate defined above for Views CP
  491.       pShowKind                                = 'sknd',            // defined above for Views CP
  492.       pShowLabel                                = 'slbl',            // defined above for Views CP
  493.       pShowSize                                = 'ssiz',            // defined above for Views CP
  494.       pShowVersion                            = 'svrs',            // defined above for Views CP
  495.       pShowCreationDate                        = 'scda',            // defined in cPreferencesWindow
  496.       pShowFileType                            = 'sfty',            // defined in cPreferencesWindow
  497.       pShowFileCreator                        = 'sfcr',            // defined in cPreferencesWindow
  498.       pListViewIconSize                        = 'lvis',            // defined above for Views CP
  499.       pGridIcons                                = 'fgrd',            // defined above for Views CP
  500.       pStaggerIcons                            = 'fstg',            // defined above for Views CP
  501.       pViewFont                                = 'vfnt',            // defined above for Views CP
  502.       pViewFontSize                            = 'vfsz',            // defined above for Views CP
  503.       pUseRelativeDate                        = 'urdt',            // defined in cPreferencesWindow
  504.       pDelayBeforeSpringing                    = 'dela',            // defined in cPreferencesWindow
  505.       pShowMacOSFolder                        = 'sosf',            // defined in cPreferencesWindow
  506.       pUseShortMenus                            = 'usme',            // defined in cPreferencesWindow
  507.       pUseCustomNewMenu                        = 'ucnm',            // defined in cPreferencesWindow
  508.       pShowDesktopInBackground                = 'sdtb',            // defined in cPreferencesWindow
  509.       pActivateDesktopOnClick                    = 'adtc',            // defined in cPreferencesWindow
  510.       pLabel1                                    = 'lbl1',            // defined in cPreferencesWindow
  511.       pLabel2                                    = 'lbl2',            // defined in cPreferencesWindow
  512.       pLabel3                                    = 'lbl3',            // defined in cPreferencesWindow
  513.       pLabel4                                    = 'lbl4',            // defined in cPreferencesWindow
  514.       pLabel5                                    = 'lbl5',            // defined in cPreferencesWindow
  515.       pLabel6                                    = 'lbl6',            // defined in cPreferencesWindow
  516.       pLabel7                                    = 'lbl7',            // defined in cPreferencesWindow
  517.       pWindow                                    = cWindow            // defined above
  518.   };
  519. */
  520.  
  521. /*
  522.    Properties of class cLabel (subclass of cObject)
  523.   enum {
  524.       pName                                    = 'pnam',            // defined in AERegistry.r
  525.       pColor                                    = 'colr',            // defined in AERegistry.r
  526.   };
  527. */
  528.  
  529. /* Misc Properties*/
  530. enum {
  531.     pSmallIcon                    = FOUR_CHAR_CODE('smic'),
  532.     pSmallButton                = FOUR_CHAR_CODE('smbu'),
  533.     pLargeButton                = FOUR_CHAR_CODE('lgbu'),
  534.     pGrid                        = FOUR_CHAR_CODE('grid')
  535. };
  536.  
  537. /*
  538.   //////////////////////////////////////
  539.    Enumerations defined by the Finder
  540.   //////////////////////////////////////
  541. */
  542.  
  543. enum {
  544.     enumViewBy                    = FOUR_CHAR_CODE('vwby'),
  545.     enumGestalt                    = FOUR_CHAR_CODE('gsen'),
  546.     enumConflicts                = FOUR_CHAR_CODE('cflc'),
  547.     enumExistingItems            = FOUR_CHAR_CODE('exsi'),
  548.     enumOlderItems                = FOUR_CHAR_CODE('oldr')
  549. };
  550.  
  551. enum {
  552.     enumDate                    = FOUR_CHAR_CODE('enda'),
  553.     enumAnyDate                    = FOUR_CHAR_CODE('anyd'),
  554.     enumToday                    = FOUR_CHAR_CODE('tday'),
  555.     enumYesterday                = FOUR_CHAR_CODE('yday'),
  556.     enumThisWeek                = FOUR_CHAR_CODE('twek'),
  557.     enumLastWeek                = FOUR_CHAR_CODE('lwek'),
  558.     enumThisMonth                = FOUR_CHAR_CODE('tmon'),
  559.     enumLastMonth                = FOUR_CHAR_CODE('lmon'),
  560.     enumThisYear                = FOUR_CHAR_CODE('tyer'),
  561.     enumLastYear                = FOUR_CHAR_CODE('lyer'),
  562.     enumBeforeDate                = FOUR_CHAR_CODE('bfdt'),
  563.     enumAfterDate                = FOUR_CHAR_CODE('afdt'),
  564.     enumBetweenDate                = FOUR_CHAR_CODE('btdt'),
  565.     enumOnDate                    = FOUR_CHAR_CODE('ondt')
  566. };
  567.  
  568. enum {
  569.     enumAllDocuments            = FOUR_CHAR_CODE('alld'),
  570.     enumFolders                    = FOUR_CHAR_CODE('fold'),
  571.     enumAliases                    = FOUR_CHAR_CODE('alia'),
  572.     enumStationery                = FOUR_CHAR_CODE('stat')
  573. };
  574.  
  575. enum {
  576.     enumWhere                    = FOUR_CHAR_CODE('wher'),
  577.     enumAllLocalDisks            = FOUR_CHAR_CODE('aldk'),
  578.     enumAllRemoteDisks            = FOUR_CHAR_CODE('ardk'),
  579.     enumAllDisks                = FOUR_CHAR_CODE('alld'),
  580.     enumAllOpenFolders            = FOUR_CHAR_CODE('aofo')
  581. };
  582.  
  583.  
  584. enum {
  585.     enumIconSize                = FOUR_CHAR_CODE('isiz'),
  586.     enumSmallIconSize            = pSmallIcon,
  587.     enumMiniIconSize            = FOUR_CHAR_CODE('miic'),
  588.     enumLargeIconSize            = FOUR_CHAR_CODE('lgic')
  589. };
  590.  
  591. enum {
  592.     enumSortDirection            = FOUR_CHAR_CODE('sodr'),
  593.     enumSortDirectionNormal        = FOUR_CHAR_CODE('snrm'),
  594.     enumSortDirectionReverse    = FOUR_CHAR_CODE('srvs')
  595. };
  596.  
  597. enum {
  598.     enumArrangement                = FOUR_CHAR_CODE('earr')
  599. };
  600.  
  601. /* Get Info Window panel enumeration*/
  602. enum {
  603.     enumInfoWindowPanel            = FOUR_CHAR_CODE('ipnl'),
  604.     enumGeneralPanel            = FOUR_CHAR_CODE('gpnl'),
  605.     enumSharingPanel            = FOUR_CHAR_CODE('spnl'),
  606.     enumStatusNConfigPanel        = FOUR_CHAR_CODE('scnl'),
  607.     enumFontsPanel                = FOUR_CHAR_CODE('fpnl'),
  608.     enumMemoryPanel                = FOUR_CHAR_CODE('mpnl')
  609. };
  610.  
  611.  
  612. /* Preferences panel enumeration*/
  613. enum {
  614.     enumPrefsWindowPanel        = FOUR_CHAR_CODE('pple'),
  615.     enumPrefsGeneralPanel        = FOUR_CHAR_CODE('pgnp'),
  616.     enumPrefsLabelPanel            = FOUR_CHAR_CODE('plbp'),
  617.     enumPrefsIconViewPanel        = FOUR_CHAR_CODE('pivp'),
  618.     enumPrefsButtonViewPanel    = FOUR_CHAR_CODE('pbvp'),
  619.     enumPrefsListViewPanel        = FOUR_CHAR_CODE('plvp')
  620. };
  621.  
  622. /*
  623.   //////////////////////////////////////
  624.    Types defined by the Finder
  625.   //////////////////////////////////////
  626. */
  627.  
  628. enum {
  629.     typeIconFamily                = cIconFamily,                    /* An AEList of typeIconAndMask, type8BitIcon, & c.*/
  630.     typeIconAndMask                = FOUR_CHAR_CODE('ICN#'),
  631.     type8BitMask                = FOUR_CHAR_CODE('l8mk'),
  632.     type32BitIcon                = FOUR_CHAR_CODE('il32'),
  633.     type8BitIcon                = FOUR_CHAR_CODE('icl8'),
  634.     type4BitIcon                = FOUR_CHAR_CODE('icl4'),
  635.     typeSmallIconAndMask        = FOUR_CHAR_CODE('ics#'),
  636.     typeSmall8BitMask            = FOUR_CHAR_CODE('s8mk'),
  637.     typeSmall32BitIcon            = FOUR_CHAR_CODE('is32'),
  638.     typeSmall8BitIcon            = FOUR_CHAR_CODE('ics8'),
  639.     typeSmall4BitIcon            = FOUR_CHAR_CODE('ics4'),
  640.     typeRelativeTime            = FOUR_CHAR_CODE('rtim'),
  641.     typeConceptualTime            = FOUR_CHAR_CODE('timc')
  642. };
  643.  
  644. /*
  645.   //////////////////////////////////////
  646.    Keywords defined by the Finder
  647.   //////////////////////////////////////
  648. */
  649.  
  650. enum {
  651.     keyIconAndMask                = FOUR_CHAR_CODE('ICN#'),
  652.     key32BitIcon                = FOUR_CHAR_CODE('il32'),
  653.     key8BitIcon                    = FOUR_CHAR_CODE('icl8'),
  654.     key4BitIcon                    = FOUR_CHAR_CODE('icl4'),
  655.     key8BitMask                    = FOUR_CHAR_CODE('l8mk'),
  656.     keySmallIconAndMask            = FOUR_CHAR_CODE('ics#'),
  657.     keySmall8BitIcon            = FOUR_CHAR_CODE('ics8'),
  658.     keySmall4BitIcon            = FOUR_CHAR_CODE('ics4'),
  659.     keySmall32BitIcon            = FOUR_CHAR_CODE('is32'),
  660.     keySmall8BitMask            = FOUR_CHAR_CODE('s8mk'),
  661.     keyMini1BitMask                = FOUR_CHAR_CODE('icm#'),
  662.     keyMini4BitIcon                = FOUR_CHAR_CODE('icm4'),
  663.     keyMini8BitIcon                = FOUR_CHAR_CODE('icm8'),
  664.     keyAEUsing                    = FOUR_CHAR_CODE('usin'),
  665.     keyAEReplacing                = FOUR_CHAR_CODE('alrp'),
  666.     keyAENoAutoRouting            = FOUR_CHAR_CODE('rout'),
  667.     keyLocalPositionList        = FOUR_CHAR_CODE('mvpl'),
  668.     keyGlobalPositionList        = FOUR_CHAR_CODE('mvpg'),
  669.     keyRedirectedDocumentList    = FOUR_CHAR_CODE('fpdl')
  670. };
  671.  
  672. /*
  673.   //////////////////////////////////////
  674.    New prepositions used by the Finder
  675.   //////////////////////////////////////
  676. */
  677.  
  678. enum {
  679.     keyASPrepositionHas            = FOUR_CHAR_CODE('has '),
  680.     keyAll                        = FOUR_CHAR_CODE('kyal'),
  681.     keyOldFinderItems            = FOUR_CHAR_CODE('fsel')
  682. };
  683.  
  684. /*
  685.   //////////////////////////////////////
  686.    New key forms used by the Finder
  687.   //////////////////////////////////////
  688. */
  689.  
  690. enum {
  691.     formAlias                    = typeAlias,
  692.     formCreator                    = pFileCreator
  693. };
  694.  
  695.  
  696. /*
  697.   //////////////////////////////////////
  698.    Finder error codes
  699.   //////////////////////////////////////
  700. */
  701.  
  702. enum {
  703.     errFinderIsBusy                = -15260,
  704.     errFinderWindowNotOpen        = -15261,
  705.     errFinderCannotPutAway        = -15262,
  706.     errFinderWindowMustBeIconView = -15263,                        /* RequireWindowInIconView*/
  707.     errFinderWindowMustBeListView = -15264,                        /* RequireWindowInListView*/
  708.     errFinderCantMoveToDestination = -15265,
  709.     errFinderCantMoveSource        = -15266,
  710.     errFinderCantOverwrite        = -15267,
  711.     errFinderIncestuousMove        = -15268,                        /* Could just use errFinderCantMoveSource*/
  712.     errFinderCantMoveToAncestor    = -15269,                        /* Could also use errFinderCantMoveSource*/
  713.     errFinderCantUseTrashedItems = -15270,
  714.     errFinderItemAlreadyInDest    = -15271,                        /* Move from folder A to folder A*/
  715.     errFinderUnknownUser        = -15272,                        /* Includes unknown group*/
  716.     errFinderSharePointsCantInherit = -15273,
  717.     errFinderWindowWrongType    = -15274,
  718.     errFinderPropertyNowWindowBased = -15275,
  719.     errFinderAppFolderProtected    = -15276,                        /* used by General controls when folder protection is on*/
  720.     errFinderSysFolderProtected    = -15277,                        /* used by General controls when folder protection is on*/
  721.     errFinderBoundsWrong        = -15278,
  722.     errAEValueOutOfRange        = -15279,
  723.     errFinderPropertyDoesNotApply = -15280,
  724.     errFinderFileSharingMustBeOn = -15281,
  725.     errFinderMustBeActive        = -15282,
  726.     errFinderVolumeNotFound        = -15283,                        /* more descriptive than what we get with nsvErr*/
  727.     errFinderLockedItemsInTrash    = -15284,                        /* there are some locked items in the trash*/
  728.     errFinderOnlyLockedItemsInTrash = -15285,                    /* all the items (except folders) in the trash are locked*/
  729.     errFinderProgramLinkingMustBeOn = -15286,
  730.     errFinderWindowMustBeButtonView = -15287,
  731.     errFinderBadPackageContents    = -15288,                        /* something is wrong within the package        */
  732.     errFinderUnsupportedInsidePackages = -15289,                /* operation cannot be used on items within a package        */
  733.     errFinderCorruptOpenFolderList = -15290,                    /* was -15276 in Finder 8.6 and earlier, but that conflicted with General Controls*/
  734.     errFinderNoInvisibleFiles    = -15291,                        /* was -15277 in Finder 8.6 and earlier, but that conflicted with General Controls*/
  735.     errFinderCantDeleteImmediately = -15292,                    /* cannot delete immediately via scripting*/
  736.     errFinderLastReserved        = -15379
  737. };
  738.  
  739.  
  740. #if PRAGMA_STRUCT_ALIGN
  741.     #pragma options align=reset
  742. #elif PRAGMA_STRUCT_PACKPUSH
  743.     #pragma pack(pop)
  744. #elif PRAGMA_STRUCT_PACK
  745.     #pragma pack()
  746. #endif
  747.  
  748. #ifdef PRAGMA_IMPORT_OFF
  749. #pragma import off
  750. #elif PRAGMA_IMPORT
  751. #pragma import reset
  752. #endif
  753.  
  754. #ifdef __cplusplus
  755. }
  756. #endif
  757.  
  758. #endif /* __FINDERREGISTRY__ */
  759.  
  760.